<div class="panel panel-default panel-intro">
    <div class="panel-heading">

        <ul class="nav nav-tabs" data-field="status">
            <li class="active"><a href="#t-active" data-value="" data-toggle="tab">活动开关</a></li>
            <li><a href="#t-system" data-value="" data-toggle="tab">系统配置</a></li>
            <li><a href="#t-color" data-value="" data-toggle="tab">主题色配置</a></li>
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">

            <div class="tab-pane fade active in" id="t-active">
                <form class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">活动审核开关:</label>
                        <div class="col-xs-12 col-sm-2">
                            <input  id="c-check" name="row[check]" type="hidden" {notempty name="row.check"} value="{$row.check|htmlentities}" {else /} value="0" {/notempty}>
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-check" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {empty name="row.check"} fa-flip-horizontal text-gray {else /} {eq name="$row.check" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">礼物总开关:</label>
                        <div class="col-xs-12 col-sm-2">
                            <input  id="c-gift_status" name="row[gift_status]" type="hidden" {notempty name="row.gift_status"} value="{$row.gift_status|htmlentities}" {else /} value="0" {/notempty}>
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-gift_status" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {empty name="row.gift_status"} fa-flip-horizontal text-gray {else /} {eq name="$row.gift_status" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <div class="form-group ios_gift_status">
                        <label class="control-label col-xs-12 col-sm-2">IOS礼物开关:</label>
                        <div class="col-xs-12 col-sm-2">
                            <input  id="c-ios_gift_status" name="row[ios_gift_status]" type="hidden" {notempty name="row.ios_gift_status"} value="{$row.ios_gift_status|htmlentities}" {else /} value="0" {/notempty}>
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-ios_gift_status" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {empty name="row.ios_gift_status"} fa-flip-horizontal text-gray {else /} {eq name="$row.ios_gift_status" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <div class="form-group ios_gift_status">
                        <label class="control-label col-xs-12 col-sm-2">送礼列表开关:</label>
                        <div class="col-xs-12 col-sm-2">
                            <input  id="c-gift_person" name="row[gift_person]" type="hidden" {notempty name="row.gift_person"} value="{$row.gift_person|htmlentities}" {else /} value="0" {/notempty}>
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-gift_person" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {empty name="row.gift_person"} fa-flip-horizontal text-gray {else /} {eq name="$row.gift_person" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">弹幕开关:</label>
                        <div class="col-xs-12 col-sm-2">
                            <input  id="c-review_status" name="row[review_status]" type="hidden" {notempty name="row.review_status"} value="{$row.review_status|htmlentities}" {else /} value="0" {/notempty}>
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-review_status" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {empty name="row.review_status"} fa-flip-horizontal text-gray {else /} {eq name="$row.review_status" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">投票需要授权手机号:</label>
                        <div class="col-xs-12 col-sm-2">
                            <input  id="c-vote_mobile_status" name="row[vote_mobile_status]" type="hidden" {notempty name="row.vote_mobile_status"} value="{$row.vote_mobile_status|htmlentities}" {else /} value="0" {/notempty}>
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-vote_mobile_status" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {empty name="row.vote_mobile_status"} fa-flip-horizontal text-gray {else /} {eq name="$row.vote_mobile_status" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">过期活动是否显示:</label>
                        <div class="col-xs-12 col-sm-2">
                            <input  id="c-end_show" name="row[end_show]" type="hidden" {notempty name="row.end_show"} value="{$row.end_show|htmlentities}" {else /} value="0" {/notempty}>
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-end_show" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {empty name="row.end_show"} fa-flip-horizontal text-gray {else /} {eq name="$row.end_show" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">用户电脑管理:</label>
                        <div class="col-xs-12 col-sm-2">
                            <input  id="c-computer_manage" name="row[computer_manage]" type="hidden" {notempty name="row.computer_manage"} value="{$row.computer_manage|htmlentities}" {else /} value="0" {/notempty}>
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-computer_manage" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {empty name="row.computer_manage"} fa-flip-horizontal text-gray {else /} {eq name="$row.computer_manage" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">全站流量主:</label>
                        <div class="col-xs-12 col-sm-2">
                            <input  id="c-all_ad" name="row[all_ad]" type="hidden" {notempty name="row.all_ad"} value="{$row.all_ad|htmlentities}" {else /} value="0" {/notempty}>
                            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-all_ad" data-yes="1" data-no="0" >
                                <i class="fa fa-toggle-on text-success {empty name="row.all_ad"} fa-flip-horizontal text-gray {else /} {eq name="$row.all_ad" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                            </a>
                        </div>
                    </div>

                    <input type="hidden" name="type" value="active">
                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-2">
                            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        </div>
                    </div>
                </form>
            </div>

            <div class="tab-pane fade" id="t-system">
                <form class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">小程序分享标题:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-share_title" class="form-control" name="row[share_title]" type="text" {notempty name="$row.share_title"}value="{$row.share_title|htmlentities}"{/notempty}>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">小程序分享图片:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-share_img" class="form-control" size="50" name="row[share_img]" type="text" {notempty name="$row.share_img" }value="{$row.share_img|htmlentities}" {/notempty}>
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-share_img" class="btn btn-danger faupload" data-input-id="c-share_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-share_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-share_img" class="btn btn-primary fachoose" data-input-id="c-share_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-share_img"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-share_img"></ul>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">微信二维码:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-wx_qrcode" class="form-control" size="50" name="row[wx_qrcode]" type="text" {notempty name="$row.wx_qrcode" }value="{$row.wx_qrcode|htmlentities}" {/notempty}>
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-wx_qrcode" class="btn btn-danger faupload" data-input-id="c-wx_qrcode" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-wx_qrcode"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-wx_qrcode" class="btn btn-primary fachoose" data-input-id="c-wx_qrcode" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-wx_qrcode"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-wx_qrcode"></ul>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">作品上传图标:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-person_upload_icon" class="form-control" size="50" name="row[person_upload_icon]" type="text" {notempty name="$row.person_upload_icon" }value="{$row.person_upload_icon|htmlentities}" {/notempty}>
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-person_upload_icon" class="btn btn-danger faupload" data-input-id="c-person_upload_icon" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-person_upload_icon"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-person_upload_icon" class="btn btn-primary fachoose" data-input-id="c-person_upload_icon" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-person_upload_icon"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-person_upload_icon"></ul>
                        </div>
                    </div>

                    <input type="hidden" name="type" value="system">
                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                        </div>
                    </div>
                </form>
            </div>

            {include file="kzvote/config/color" /}


    </div>
</div>
<style>
    .width50{
        width: 60%;
        margin: 0 auto;
        margin-bottom: 20px;
    }
</style>

